import './assets/main.css'
import { createApp } from 'vue'
import { setupStore } from '@/stores/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createHead } from '@vueuse/head'
import App from './App.vue'
import router from './router'
import EditQuestionFilled from '@/components/EditQuestionFilled/index.vue'
import DialogClose from '@/components/DialogClose/index.vue'

const app = createApp(App)
const head = createHead()

app.use(router)
app.use(ElementPlus)
app.component('EditQuestionFilled', EditQuestionFilled)
app.component('DialogClose', DialogClose)
// 全局注册 状态管理（store）
setupStore(app)
app.use(head)
app.mount('#app')
